# -*- coding: utf-8 -*-
"""
信息台账管理系统配置文件
"""

import os

# 应用配置
APP_NAME = "信息台账管理系统"
APP_VERSION = "1.0.0"
APP_AUTHOR = "谢囧囧"

# 数据库配置
DB_NAME = "itss.db"
DB_PATH = os.path.join(os.getcwd(), DB_NAME)

# 备份配置
BACKUP_DIR = "backups"
BACKUP_FORMAT = "backup_{timestamp}.db"

# Excel导出配置
EXPORT_DIR = "exports"
IP_EXPORT_FILE = "IP_info.xlsx"
APP_SYSTEM_EXPORT_FILE = "app_system.xlsx"
ACCOUNT_SYSTEM_EXPORT_FILE = "account_system.xlsx"

# 日志配置
LOG_DIR = "logs"
AUDIT_LOG_FORMAT = "audit_{date}.log"

# 字典默认值
DEFAULT_DEVICE_TYPES = ["服务器", "安全设备", "pc机"]
DEFAULT_NETWORK_SEGMENTS = ["服务器网段", "办公网段", "临床网段"]
DEFAULT_MIDDLEWARE_TYPES = ["数据库", "缓存", "web发布"]
DEFAULT_MIDDLEWARE_NAMES = ["Nginx", "MySQL", "Redis", "Tomcat"]
DEFAULT_VIRTUALIZATION_TYPES = ["VMware", "KVM"]
DEFAULT_ACCOUNT_LEVELS = ["管理员", "普通用户"]
DEFAULT_ACCOUNT_TYPES = ["共享账号", "单独账号"]
DEFAULT_APP_SYSTEM_TYPES = ["办公", "临时", "管理"]